package org.abettor.tanqiu;

import org.abettor.tanqiu.gameloop.GameLoop;
import org.abettor.tanqiu.screen.Screen;

import com.badlogic.gdx.Application;
import com.badlogic.gdx.ApplicationListener;
import com.badlogic.gdx.Gdx;
public class GameMain implements ApplicationListener{
	private boolean isInitialized = false;
	private Screen screen;
	@Override
	public void create() {
		if(!isInitialized){
			screen = new GameLoop(Gdx.app);
		}
	}

	@Override
	public void resume() {
	}

	@Override
	public void render() {
		Application app = Gdx.app;
		screen.update(app);
		screen.present(app);		
	}

	@Override
	public void resize(int width, int height) {
	}

	@Override
	public void pause() {
	}

	@Override
	public void dispose() {
	}

}
